<template>
	<view style="height: 100vh; background-color: #FFFFFF;">
		<u-navbar title-color="#FFFFFF" height="48" back-icon-color="#FFFFFF" :border-bottom="false" :is-fixed="true" :title="'维保工单需求'"></u-navbar>
		<u-form :model="feedbackForm" ref="feedbackForm" label-width="100px" style="padding: 24rpx;">
			<u-form-item label-position="left" label="消防隐患反馈">
				<u-input type="textarea" :border="border" placeholder="如需要维保公司介入" v-model="feedbackForm.feedBackRemark" />
			</u-form-item>

		</u-form>
		
		<u-button @click="submit" type="primary" style="margin: 24rpx;">提交</u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				border:true,
				feedbackForm:{
					maintenanceRecordId:'',
					feedBackRemark:''
				},
			}
		},
		methods: {			
			onLoad(e) {
				this.feedbackForm.maintenanceRecordId=e.ucId
				console.log(this.feedbackForm.maintenanceRecordId)
			},
			onShow() {
				
			},
			back(){
				window.native.back()
			},
			submit(){
				this.utils.request("/api/app/maintenanceRecord/generateInMaintenanceFeedbackLog",this.feedbackForm, "post", "app", true).then(res => {
					uni.navigateBack({
						delta:1
					})
				}).catch(error => {
					console.log(error)
				})
			},
		
		}
	}
</script>

<style>

</style>
